/*
 *    Copyright (c) 2018-2025, nart All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the pig4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: nart
 */

package com.nai365.nart.order.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.math.BigDecimal;

/**
 * 订单项信息
 *
 * @author baogs
 * @date 2022-07-01 14:19:39
 */
@Data
@TableName("oms_order_item")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "订单项信息")
public class OrderItem extends Model<OrderItem> {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value="id")
    private Long id;

    /**
     * order_id
     */
    @ApiModelProperty(value="order_id")
    private Long orderId;

    /**
     * order_sn
     */
    @ApiModelProperty(value="order_sn")
    private String orderSn;

    /**
     * spu_id
     */
    @ApiModelProperty(value="spu_id")
    private Long spuId;

    /**
     * spu_name
     */
    @ApiModelProperty(value="spu_name")
    private String spuName;

    /**
     * spu_pic
     */
    @ApiModelProperty(value="spu_pic")
    private String spuPic;

    /**
     * 品牌
     */
    @ApiModelProperty(value="品牌")
    private String spuBrand;

    /**
     * 商品分类id
     */
    @ApiModelProperty(value="商品分类id")
    private Long categoryId;

    /**
     * 商品sku编号
     */
    @ApiModelProperty(value="商品sku编号")
    private Long skuId;

    /**
     * 商品sku名字
     */
    @ApiModelProperty(value="商品sku名字")
    private String skuName;

    /**
     * 商品sku图片
     */
    @ApiModelProperty(value="商品sku图片")
    private String skuPic;

    /**
     * 商品sku价格
     */
    @ApiModelProperty(value="商品sku价格")
    private BigDecimal skuPrice;

    /**
     * 商品购买的数量
     */
    @ApiModelProperty(value="商品购买的数量")
    private Integer skuQuantity;

    /**
     * 商品销售属性组合（JSON）
     */
    @ApiModelProperty(value="商品销售属性组合（JSON）")
    private String skuAttrsVals;

    /**
     * 商品促销分解金额
     */
    @ApiModelProperty(value="商品促销分解金额")
    private BigDecimal promotionAmount;

    /**
     * 优惠券优惠分解金额
     */
    @ApiModelProperty(value="优惠券优惠分解金额")
    private BigDecimal couponAmount;

    /**
     * 积分优惠分解金额
     */
    @ApiModelProperty(value="积分优惠分解金额")
    private BigDecimal integrationAmount;

    /**
     * 该商品经过优惠后的分解金额
     */
    @ApiModelProperty(value="该商品经过优惠后的分解金额")
    private BigDecimal realAmount;

    /**
     * 赠送积分
     */
    @ApiModelProperty(value="赠送积分")
    private Integer giftIntegration;

    /**
     * 赠送成长值
     */
    @ApiModelProperty(value="赠送成长值")
    private Integer giftGrowth;


	/**
	 * 分类名
	 */
	@ApiModelProperty(value="分类名")
	private String catalogName;

	/**
	 * 商品名称
	 */
	private String spuNameEn;

	/**
	 * 藏品编号
	 */
	@ApiModelProperty(value = "藏品编号")
	private String skuCode;

	/**
	 * DDC或BFT的token
	 */
	@ApiModelProperty(value = "DDC或BFT的token")
	private Long token;


}
